package com.example.databean;

import java.io.Serializable;

/**
 * 消息框列表bean类b
 * 包含数据用户名和消息用于显示的，还有用户id用于后续传递给跳转的页面
 * */
public class InfoBean implements Serializable {

    private String userName;//当前会话界面的用户昵称

    private String lastInfo;//当前会话界面的最后一条消息

    private String userId;//当前会话界面的用户id

    public String getUserId() {
        return userId;
    }

    public InfoBean(String userName, String lastInfo, String userId) {
        this.userName = userName;
        this.lastInfo = lastInfo;
        this.userId = userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public InfoBean(String userName, String lastInfo) {
        this.userName = userName;
        this.lastInfo = lastInfo;
    }

    public InfoBean() {
    }

    public String getLastInfo() {
        return lastInfo;
    }

    public void setLastInfo(String lastInfo) {
        this.lastInfo = lastInfo;
    }

    public InfoBean(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
